package es.ats.codington.festival.utils;

import java.sql.Connection;
import java.sql.DriverManager;


public class FERSDataConnection {

	static Connection con;
	
	public static Connection getConnection(){
		
		try{
			String url = "jdbc:mysql://localhost/codingtonbit";
			String user = "root";
			String pass = "abcd1234";
			
			Class.forName("com.mysql.jdbc.Driver");
			
			con = DriverManager.getConnection(url, user, pass);
			
		}
		catch (Exception e){
			System.out.println(e.getMessage());
		}
		return con;
	}
	
	
}
